package com.zy.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.zy.pojo.Jurisdiction;
import org.apache.ibatis.annotations.Select;

import java.util.List;


public interface JurisdictionMapper extends BaseMapper<Jurisdiction> {
    @Select("select permcode from jurisdiction where id in (select jid from permission where cid=#{cid})")
    List<String> getPercodes(Integer cid);
}
